<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>&nbsp;积分商城后台管理系统</title>
<include file="Public/header" />
</head>
<script type="text/javascript">
$(function(){
 
	 
	 function check(){
	 var checkedNum = $("input[name='ids[]']:checked").length;
        if(checkedNum == 0) {
            alert("请至少选择一项！");
            return false;
        }
	  return true;
	 }
    $(".allCommand").click(function(){
       if(check()){
        var checkedList = new Array();
        $("input[name='ids[]']:checked").each(function() {
            checkedList.push($(this).val());
        });
		var url=$(this).attr("url");
        window.location.href = url+'?ids='+checkedList;
		}
    });
	
	$("#repleyAll").click(function(){
	  if(!check())return false;
	  $("#guide_1").show();
	})
	
	$("#postBtn").click(function(){
		var reply_content=$("#content").val();
		if(reply_content==""){
		   alert("回复内容不能空");
		   return false;
		   }
		var checkedList = new Array();
			$("input[name='ids[]']:checked").each(function() {
			checkedList.push($(this).val());
			});
		 $.post("rep",{reply_content:reply_content,ids:checkedList},function(data){
		   window.location.reload();
		 })	
	  }) 
})
</script>

<body>  
 
        <div class="list_vmall_man">
        <div class="list_vmall_le">
        	<include file="Public/integralMenu" />
            </div>
            <div class="list_vmall_rig">
            	<div class="list_vmall_bort">
                	<table width="100%" border="1" cellspacing="1" cellpadding="1">
                      <tr>
                       <form action="<{:U('index')}>" method="get">
                        <td height="46"><input type="text" name="kw" style="margin-left:5px;" value="<{$_REQUEST['kw']}>" placeholder="公司名称" /><input type="submit" value="搜索" style="margin-left:4px; height:26px; color:#333" class="btn" /></td>
                        </form>
                         <td height="46"><a href="<{:U('gocz',array('type'=>1))}>" class="v_mall_q"><i class="v_mall_fi"></i>积分充值</a></td>
                         <td style="width: 116px" height="46"><a href="<{:U('gocz',array('type'=>2))}>"  class="v_mall_q"><i class="v_mall_fi"></i>账户充值</a></td>
                      </tr>
                    </table>
                 
					       <table width="100%" class="v_am_bor_t v_am_td" border="1" cellspacing="1" cellpadding="1">
                      <tr class="v_am_bg_top" height="30">
					  
                        <td height="34" align="center" valign="middle" class="v_am_font">ID</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">公司名称</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">积分</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">账户余额</td>
                        <td height="34" align="center" valign="middle" class="v_am_font" style="border-right:0;">操作</td>
                      </tr>
					<volist name="data" id="vo">
                      <tr>
					   
                        <td height="36" align="center" valign="middle"><{$vo.store_id}></td>
                        <td height="36" align="center" valign="middle"><{$vo.store_name}></td>
                        <td height="36" align="center" valign="middle"><{$vo.integral}></td>
                        <td height="36" align="center" valign="middle"><{$vo.money}></td>
                      
                        <td style="border-right:0;"  height="36" align="center" valign="middle">
                            <a href="<{:U('visit',array('store_id' => $vo['store_id']))}>" class="btn"><i class="v_mall_tubg v_mall_tj2"></i>&nbsp;充值记录</a>  

                             
                        </td>
                      </tr>
                       </volist>
                   
                    </table><br />

					<div>
				
				 </div> 
                      <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />

                
                </div>
            </div>
        </div>
 		            <!--弹窗 AD-->
            
            <div class="modal hide fade in" id="guide_1"   aria-hidden="false">
           
			    <div class="modal-body">
                   <textarea style="width:520px" id="content"></textarea>
                </div>
                <div class="modal-footer">
				<button aria-hidden="true" id="postBtn"  data-dismiss="modal" class="btn" style="padding:4px 12px; font-size:14px;">提交</button>
                    <button aria-hidden="true" data-dismiss="modal" class="btn" onclick="$('#guide_1').hide()" style="padding:4px 12px; font-size:14px;">关闭</button>
                </div>
				 
            </div>  
            
            <!--弹窗 |End -->
</body>
</html>
